package com.yumeng.framework.core.base.controller;

import com.yumeng.common.api.ApiResult;
import com.yumeng.common.auth.BaseAuthHelper;
import com.yumeng.common.auth.BaseAuthInfo;
import com.yumeng.common.data.annotations.OperationLogIgnore;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 *
 * @author wxd
 * @date 2025/11/13 13:46
 */
@RestController
@RequestMapping("/ym/auth")
@OperationLogIgnore
@Tag(name = "认证Controller", description = "通用的认证层面的接口集合")
public class YumengAuthController {

    @Operation(summary = "获取当前BaseAuthInfo")
    @GetMapping("/getCurrAuthInfo.do")
    public ApiResult getCurrAuthInfo() {
        BaseAuthInfo authInfo = BaseAuthHelper.getCurrAuthInfo();
        return ApiResult.successData(authInfo);
    }

}
